package com.boot.proofing.mpweb.base.entity;/**
 * @description
 * @autor xbwu on 2017/8/12.
 */


import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.core.entity.BaseMpEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;


/**
 * 数据字典
 *
 * @author xbwu
 * @create 2018-12-05
 **/
@TableName("t_data_dictionary")
@Table(name = "t_data_dictionary")
@Data
public class DataDictionary extends BaseMpEntity<DataDictionary> {

    /**
     * key
     */
    @Column(name="date_key",isNull = false,type = MySqlTypeConstant.VARCHAR,length = 50)
    @TableField(value="date_key",condition = SqlCondition.LIKE)
    private String dateKey;
    /**
     * 名称 , condition 属性设置注入
     * 等效于 SQL 为：WHERE name LIKE CONCAT('%',s值,'%')
     */
    @Column(name="date_name",type = MySqlTypeConstant.VARCHAR,length = 200)
    @TableField(value="date_name",condition = SqlCondition.LIKE)
    private String dateName;


    @Column(name="date_value",type = MySqlTypeConstant.VARCHAR,length = 50)
    @TableField(value="date_value")
    private String dateValue;

}
